package uk.co.itmentor.pmff.element;

import java.util.Set;

import uk.co.itmentor.pmff.FFException;
import uk.co.itmentor.pmff.annotation.processor.AnnotationUtil;
/**
 * Factory class for a {@link FFDocument}.
 * @author mdylag
 *
 */
public abstract class FFDocumentFactory {
	
	/**
	 * Private constructor to prevent create instance of this calss.
	 */
	private FFDocumentFactory()
	{
		
	}
	/**
	 * Creates a new instance of {@link FFDocument}
	 * @param annotatedElements
	 * @return
	 * @throws FFException if
	 */
	public static FFDocument create(Set<Class<?>> annotatedElements) throws FFException
	{
		FFDocument doc = new FFDocument();
		AnnotationUtil.processAnnotations(doc, annotatedElements);
		return doc;
	}
}
